import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2024-07-21
 * Time: 9:29
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("欢迎使用图书馆系统");
        System.out.println("请问你是 1：管理员 2：借阅者");
        Scanner scanner=new Scanner(System.in);
        //确认是管理者还是借阅者
        int choice=scanner.nextInt();
        scanner.nextLine();
        System.out.println("请输入你的名字");
        String name = scanner.nextLine();
        User user = null;
        if(choice==1){
            user=new AdmUser(name);
        }else{
            user=new NorUser(name);
        }
        BookList bookList=new BookList();
        user.doWork(bookList);
    }
}
